package min.chapter.five;

import min.chapter.five.member.Member;
import min.chapter.five.member.service.MemberService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MemberAcqisition {
	public static void main(String[] args) {
		String[] configLocations = new String[] { "min/chapter/five/Member.xml" } ;
		ApplicationContext context = new ClassPathXmlApplicationContext(configLocations);
		MemberService memberService = context.getBean("memberService", MemberService.class);
		memberService.regist(new Member());
			
	}
}
